.class public abstract Les/q70;
.super Ljava/lang/Object;
.source "AbsFileComparator.java"

# interfaces
.implements Ljava/util/Comparator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Comparator<",
        "Lcom/estrongs/fs/g;",
        ">;"
    }
.end annotation


# instance fields
.field protected final a:Ljava/text/Collator;

.field protected b:I

.field private c:Z


# direct methods
.method public constructor <init>(Z)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Ljava/text/Collator;->getInstance()Ljava/text/Collator;

    move-result-object v0

    iput-object v0, p0, Les/q70;->a:Ljava/text/Collator;

    const/4 v0, 0x1

    .line 3
    iput v0, p0, Les/q70;->b:I

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Les/q70;->c:Z

    .line 5
    invoke-virtual {p0, p1}, Les/q70;->a(Z)V

    .line 6
    iget-object p1, p0, Les/q70;->a:Ljava/text/Collator;

    invoke-virtual {p1, v0}, Ljava/text/Collator;->setStrength(I)V

    return-void
.end method


# virtual methods
.method protected a(II)I
    .locals 0

    sub-int/2addr p1, p2

    .line 8
    iget p2, p0, Les/q70;->b:I

    mul-int p1, p1, p2

    return p1
.end method

.method protected a(Ljava/lang/String;Ljava/lang/String;)I
    .locals 1

    if-eqz p1, :cond_0

    if-eqz p2, :cond_0

    .line 5
    iget-object v0, p0, Les/q70;->a:Ljava/text/Collator;

    invoke-virtual {v0, p1, p2}, Ljava/text/Collator;->compare(Ljava/lang/String;Ljava/lang/String;)I

    move-result p1

    iget p2, p0, Les/q70;->b:I

    mul-int p1, p1, p2

    return p1

    :cond_0
    if-nez p1, :cond_1

    if-eqz p2, :cond_1

    .line 6
    iget p1, p0, Les/q70;->b:I

    mul-int/lit8 p1, p1, -0x1

    return p1

    :cond_1
    if-eqz p1, :cond_2

    if-nez p2, :cond_2

    .line 7
    iget p1, p0, Les/q70;->b:I

    mul-int/lit8 p1, p1, 0x1

    return p1

    :cond_2
    const/4 p1, 0x0

    return p1
.end method

.method protected a(Lcom/estrongs/fs/g;)Ljava/lang/String;
    .locals 1

    .line 3
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Z)V
    .locals 0

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, -0x1

    .line 1
    :goto_0
    iput p1, p0, Les/q70;->b:I

    return-void
.end method

.method public a()Z
    .locals 2

    .line 2
    iget v0, p0, Les/q70;->b:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method public b(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/q70;->c:Z

    return-void
.end method

.method protected b(Lcom/estrongs/fs/g;)Z
    .locals 0

    .line 2
    invoke-interface {p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/fs/l;->b()Z

    move-result p1

    return p1
.end method

.method protected c(Lcom/estrongs/fs/g;)Z
    .locals 2

    .line 1
    iget-boolean v0, p0, Les/q70;->c:Z

    if-nez v0, :cond_0

    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    const-string v1, "folder_sticky"

    invoke-interface {p1, v1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    if-ne v0, p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method
